<?php 
use yii\helpers\Html;
use yii\grid\GridView;
$this->title = '打卡记录';
 ?>
 <div>
    <h1><?= Html::encode($this->title) ?></h1>
    <p>
        <?= Html::a('导出Excel', ['excel'], ['class' => 'btn btn-info']) ?>
    </p>
     <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'columns' => [
            'id',
            'identity',
            'name',
            'push_time',
            'punch',
            'class_time',
            'created_at',
            'updated_at'
        ]
    ]);?>
    
 </div>